
import os
import pathlib
def create_folder_if_not_exit(folder):
    if os.path.exists(folder):
        return
    p = pathlib.Path(folder).parent
    if not  os.path.exists(p):
        create_folder_if_not_exit(p)
    os.mkdir(folder)